AR = ar
ARFLAGS = cr
RM = -rm -rf
INCLUDE_DIR = ../Include
CFLAGS = -I$(INCLUDE_DIR) -Wall -g
LIB = libcou.a
CC = gcc
objects := $(patsubst %.c,%.o,$(wildcard *.c))
$(objects) : %.o: %.c  %.h
	gcc -c $(CFLAGS) $< -o $@

all:$(LIB)
$(LIB):$(objects)
	$(AR) $(ARFLAGS) $@ $(objects);cp $(LIB) ../
clean:
	$(RM) $(LIB) $(objects)
.PHONY: all clean



